import request from '@/utils/request'

//查询
export function findStuEvaPlanPageList(data){
    return request({
        url: '/stu/evaluation/plan/findStuEvaPlanPageList',
        method: 'post',
        data
    })    
}

//新增
export function createStuEvaPlan(data){
    return request({
        url: '/stu/evaluation/plan/createStuEvaPlan',
        method: 'post',
        data
    })    
}

export function findStuEvaPlanById(id){
    return request({
        url: '/stu/evaluation/plan/findStuEvaPlanById/' + id,
        method: 'get',
    })    
}

export function deleteStuEvaPlanById(id){
    return request({
        url: '/stu/evaluation/plan/deleteStuEvaPlanById/' + id,
        method: 'get',
    })    
}

export function createStuEvaDataBatch(data){
    return request({
        url: '/stu/evaluation/data/createStuEvaDataBatch',
        method: 'post',
        data
    })    
}


export function findStuEvaDataByTaskId(taskId){
    return request({
        url: '/stu/evaluation/data/findStuEvaDataByTaskId/'+taskId,
        method: 'get'
    })    
}


export function exportTemplate(planId,classId,taskId,remk,planName) {
    return request({
      url: '/stu/evaluation/data/exportTemplate/'+planId+'/'+classId+'/'+taskId+'/'+remk+'/'+planName,
      responseType:'blob',
      method: 'get'
    })
  } 